package com.xingu.xg.domain.request;

import com.xingu.xg.common.enums.OperationTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class AddNodeQuery {
    @ApiModelProperty("当前选中ID")
    @NotNull(message = "当前选中ID不能为空")
    private String selectedId;

    @ApiModelProperty("操作类型，同级向上、同级向下、父节点、子节点")
    @NotNull(message = "操作类型不能为空")
    private OperationTypeEnum opType;

    @ApiModelProperty("新增节点名称")
    @NotBlank(message = "新增节点名称不能为空")
    private String nodeName;

}
